<?php
include_once "xAP-functions/webincludes.php";
echo webpageheader();


$offset=0;

$sql="select * from xAP_Telephone_Log order by LogID DESC Limit 20 offset ".$offset;
$results=dbquery($sql);

//display
echo "<Table width=100% class='normaltext'>";
foreach($results as $row){
echo "<tr>
<TD>".date($config["fulldateformat"],strtotime($row["CallDate"]))."</td>
<TD>".$row["CallName"]."</td>
<TD>".$row["CallNumber"]."</td>
<TD>".$row["Direction"]."</td>
</tr>
<tr bgcolor='#aaaaaa'><td colspan=100></td></tr>
";

}
echo "</table>";

echo webpagefooter();
?>